const chalk = require("chalk");

const log = console.log;

function success(msg) {
	log(chalk.hex("#6793C1").bold(msg));
}
function welcome(msg) {
	log(chalk.hex("#76EB4B").bold(msg));
}
function error(msg) {
	const err = chalk.bold.red;
	log(err(msg));
}

const colors = require("ansi-colors");
const cliProgress = require("cli-progress");

const preset = {
	format:
		colors.black(" {bar}") + " {percentage}% | ETA: {eta}s | {value}/{total} ",
	barCompleteChar: "\u2399",
	barIncompleteChar: "",
};

// create a new progress bar instance and use shades_classic theme
const bar = new cliProgress.SingleBar({}, preset);

// start the progress bar with a total value of 200 and start value of 0

// update the current value in your application..

// stop the progress bar

module.exports = { success, welcome, error, bar };
